package com.gohi.main.user.service;

import java.util.List;

import com.gohi.core.web.paging.PagingBean;
import com.gohi.main.user.hbm.ShopgooWxMember;


import org.springframework.transaction.TransactionException;

/**
 * <B>微信的用户映射表</B>
 * @author 肖得明<br>
 * 2015年4月13日10时34分27秒
 */
public interface IShopgooWxMemberService {
	
	
	/**
	 * 新增或者更新实体
	 * */
	public abstract ShopgooWxMember saveOrUpdate(ShopgooWxMember bean)throws TransactionException;
	
	/**
	 * 根据主键ID删除实体
	 * */
	public abstract void deleteById(String id)throws TransactionException;	
	
	
	/**
	 * 根据主键ID获取实体
	 * */
	public abstract ShopgooWxMember getById(String id)throws TransactionException;	
	
	/**
	 * 查询实体集合无分页
	 * @param bean 查询Bean
	 * */
	public abstract List<ShopgooWxMember> select(ShopgooWxMember bean)throws TransactionException;
	
	/**
	 * 查询实体集合带分页
	 * @param bean 查询Bean
	 * @param pb 分页Bean
	 * */
	public abstract List<ShopgooWxMember> select(ShopgooWxMember bean,PagingBean pb)throws TransactionException;
	
	/**
	 * 判断微信是否已经绑定了
	 * @param userid 用户的ID
	 * @return
	 */
	public abstract int wxIsBind(String userid);
	

}
